Developer --> Technical Publications

     


Providing Document Previews

Navigation Services provides a preview area in all dialog boxes that open files. This area can be toggled on or off by the user. If the preview area is visible, Navigation Services automatically displays a preview of any file that contains a valid QuickTime component of type 'pnot' . Under Navigation Services 2.0 or later, you can call the function to create a preview. You can request automatic preview display by setting the kNavAllowPreviews constant in the dialogOptionFlags field of the structure of type that you pass in the dialogOptions parameter of the file-opening function. (This option is set by default.) You can provide your own preview function and add custom controls to the preview area, as well. For more information on preview functions, see Drawing Custom Previews. For more information on 'pnot' resources, see Inside Macintosh: QuickTime Components .


© 2000 Apple Computer, Inc. (Last Updated 18 April 00)